package com.explment.lens.controller;

import com.explment.lens.entity.SysNoticeEntity;
import com.explment.lens.service.SysNoticeService;
import org.springframework.web.bind.annotation.*;
import org.springframework.beans.factory.annotation.Autowired;
import com.explment.lens.utils.result.ResultData;
/**
 * 通知管理 controller
 */
@RestController
@RequestMapping("/sysNoticeEntity")
public class SysNoticeController {
    @Autowired
    private SysNoticeService sysNoticeEntityService;

    @GetMapping("/{id}")
    public ResultData getById(@PathVariable String id) {
        return ResultData.success(sysNoticeEntityService.getById(id));
    }
}